package com.TIEmulator.FileIOLib;

import android.graphics.drawable.Drawable;

public class IconifiedText
  implements Comparable<IconifiedText>
{
  private Drawable mIcon;
  private boolean mSelectable = true;
  private String mText = "";

  public IconifiedText(String paramString, Drawable paramDrawable)
  {
    this.mIcon = paramDrawable;
    this.mText = paramString;
  }

  public int compareTo(IconifiedText paramIconifiedText)
  {
    if (this.mText != null)
      return this.mText.compareTo(paramIconifiedText.getText());
    throw new IllegalArgumentException();
  }

  public Drawable getIcon()
  {
    return this.mIcon;
  }

  public String getText()
  {
    return this.mText;
  }

  public boolean isSelectable()
  {
    return this.mSelectable;
  }

  public void setIcon(Drawable paramDrawable)
  {
    this.mIcon = paramDrawable;
  }

  public void setSelectable(boolean paramBoolean)
  {
    this.mSelectable = paramBoolean;
  }

  public void setText(String paramString)
  {
    this.mText = paramString;
  }
}
